<include file="Public/head"/>
<link href="__PUBLIC__/qwadmin/css/shen/shen.css" rel="stylesheet" type="text/css" />

<body class="no-skin">
<style>
body .demo-class .layui-layer-title{background:#6495ED; color:#fff; border: none;}
body .demo-class .layui-layer-btn{border-top:1px solid #E9E7E7}
body .demo-class .layui-layer-btn a{background:#333;}
body .demo-class .layui-layer-btn .layui-layer-btn1{background:#999;}

body th{
    color:#4F94CD;
    font-size:15px;
}
body td{
    font-size:14px;
}

#tet th{
    text-align: center;
}
#tet td{
    text-align: center;
}

#divv input{
    margin:0px 5px;
}
.dds input{
    margin:0px 5px;
}


.sp ul li{
    margin:20px 0px;
    font-size:15px; 
}

.sp ul li button{
    width:150px;
    height:40px;
}

#xxx ul{
    float:left;
    margin-top:5%;
}

#xxx ul li{
    float:left;
    padding: 5px 15px;
    margin-left:8px;
    font-size:15px;

}

</style>
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>
                <div>
                    <button onclick="fan()" class="btn-default" style="width:80px;height:30px;">返回</button>
                </div>
                <?php if($lei == 1): ?>   <!-- 行政类通过 -->
                    <!-- 行政物资审核 -->
                   <div class="row">
                        <div class="widget-box" style="margin-top:60px;height:0px;">
                            <div class="widget-header">
                                <h4 class="widget-title" style="color:#EE0000;">
                                    <label>                 
                                        <span class="lbl"></span>
                                    </label>
                                    
                                    <?php if($lei == '1'): ?>
                                        <b style="color:#53FF53;">--行政类-已通过√--</b>
                                    <?php else: ?>
                                        <?php if($lei == 2): ?>
                                        <b style="color:#53FF53;">--费用类-已通过√--</b>
                                        <?php else: ?>
                                            <?php if($lei == 3): ?>
                                                <b>--行政类-拒绝√--</b>
                                            <?php else: ?>
                                                 <b>--费用类-拒绝√--</b>
                                            <?php endif ?>
                                        <?php endif ?>
                                    <?php endif ?>
                                </h4>
                                <div class="widget-toolbar">
                                    <notempty name="v.children">
                                        <a href="#" data-action="collapse">
                                            <i class="ace-icon fa fa-chevron-up"></i>
                                        </a>
                                    </notempty>
                                </div>
                            </div>
                            <notempty name="v.children">
                                <div class="widget-body">
                                    <div class="widget-main row" style="height:100%;">
                                        <?php if(!empty($x_list)): ?>
                                                <!-- 行政物资审核 END -->
                                                <div>
                                                <!-- <h4 style="text-align:center;"><b>行政物资申请:</b></h4> -->
                                                <table class="table table-bordered" style="margin-top:5px;">
                                                    <thead>
                                                        <tr>
                                                            <th class="center">编号</th>
                                                            <th class="center">申请类型</th>
                                                            <th class="center">物品名称</th>
                                                            <!-- <th>单价</th> -->
                                                            <th class="center">申请数量</th>
                                                            <th class="center">剩余库存量</th>
                                                            <th class="center">申请人</th>
                                                            <th class="center">所属部门</th>
                                                            <th class="center">申请时间</th>
                                                            <th class="center">最后审核人</th>
                                                            <th class="center">最后通过时间</th>
                                                            <th class="center">操作</th>
                                                            <!-- <th class="center">操作</th> -->
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                    <volist name="x_list" id="v">
                                                        <tr>
                                                            <td class="center">{$v.id}</td>                                                   
                                                            <td class="center">
                                                                <?php if($v['type'] == 0): ?>
                                                                    <b style="color:#F4A460;font-size:17px;">行政物资申请</b>
                                                                <?php else: ?>
                                                                    <?php if($v['type'] == 1): ?>
                                                                        <b style="color:#B22222;font-size:17px;">急性行政物资申请</b>
                                                                    <?php else: ?>
                                                                        <?php if($v['type'] == 2): ?>
                                                                            <b style="color:#9370DB;font-size:17px;">固定资产申购</b>
                                                                        <?php else: ?>
                                                                    
                                                                        <?php endif ?>
                                                                    <?php endif ?>
                                                                <?php endif ?>
                                                            </td>                                                   
                                                            <td class="center">{$v.wname}</td>                                                   
                                                            <td class="center">{$v.num}</td>
                                                            <td class="center">
                                                                <?php if($v['type'] == 1): ?>
                                                                    急需物资申请
                                                                <?php else: ?>
                                                                    {$v.number}
                                                                <?php endif ?>
                                                            </td>
                                                            <td class="center">{$v.uname}</td>
                                                            <td class="center">{$v.ment}</td>
                                                            <td class="center">{$v.time}</td>
                                                            <td class="center">{$v.dname}</td>
                                                            <td class="center">{$v.dtime}</td>
                                                            <td class="center" style="color:#53FF53;"><b>已通过√</b></td>
                                                            <!-- <td class="center" style="color:red;"><b>已通过√</b></td> -->
                                                           
                                                              <!--   <td class="center">
                                                                <button onclick="xtong({$v.id},this)" class="btn-success">通过</button>
                                                                <button onclick="xju({$v.id},this)" class="btn-danger">拒绝</button>
                                                                </td>
                                                           -->
                                                            
                                                        </tr>
                                                    </volist>
                                                    </tbody>
                                                </table>
                                                <!-- 行政物资审核 END -->
                                        <?php endif ?>
                                                </div>
                                        <hr>
                                        {$page}
                                    </div>
                                </div>
                            </notempty>
                        </div>
                    </div>
                <!-- 急性行政物资审核  END -->
                <?php else: ?>

                    <?php if($lei == 2): ?>   <!-- 费用类通过 -->
                    <!-- 行政物资审核 -->
                   <div class="row">
                        <div class="widget-box" style="margin-top:60px;height:0px;">
                            <div class="widget-header">
                                <h4 class="widget-title" style="color:#EE0000;">
                                    <label>                 
                                        <span class="lbl"></span>
                                    </label>
                                    
                                    <?php if($lei == '1'): ?>
                                        <b>--行政类-已通过√--</b>
                                    <?php else: ?>
                                        <?php if($lei == 2): ?>
                                        <b>--费用类-已通过√--</b>
                                        <?php else: ?>
                                            <?php if($lei == 3): ?>
                                                <b>--行政类-拒绝√--</b>
                                            <?php else: ?>
                                                 <b>--费用类-拒绝√--</b>
                                            <?php endif ?>
                                        <?php endif ?>
                                    <?php endif ?>
                                </h4>
                                <div class="widget-toolbar">
                                    <notempty name="v.children">
                                        <a href="#" data-action="collapse">
                                            <i class="ace-icon fa fa-chevron-up"></i>
                                        </a>
                                    </notempty>
                                </div>
                            </div>
                            <notempty name="v.children">
                                <div class="widget-body">
                                    <div class="widget-main row" style="height:100%;">
                                        <?php if(!empty($x_list)): ?>
                                                <!-- 行政物资审核 END -->
                                                <div>
                                                <!-- <h4 style="text-align:center;"><b>行政物资申请:</b></h4> -->
                                                <table class="table table-bordered" style="margin-top:5px;">
                                                    <thead>
                                                        <tr>
                                                            <th class="center">编号</th>
                                                            <th class="center">申请类型</th>
                                                            <th class="center">科目</th>
                                                            <!-- <th>单价</th> -->
                                                            <th class="center">申请金额</th>
                                                            <th class="center">单据张数</th>
                                                            <th class="center">费用缘由</th>
                                                            <th class="center">申请人</th>
                                                            <th class="center">所属部门</th>
                                                            <th class="center">申请时间</th>
                                                            <th class="center">最后审核人</th>
                                                            <th class="center">最后通过时间</th>
                                                            <th class="center">操作</th>


                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                    <volist name="x_list" id="v">
                                                        <tr>
                                                            <td class="center">{$v.id}</td>  
                                                            <td class="center">
                                                                 <?php if($v['type'] == 1): ?>
                                                                        <b style="color:#F4A460;font-size:17px;">业务招待费</b>
                                                                    <?php else: ?>
                                                                        <?php if($v['type'] == 2): ?>
                                                                            <b style="color:#B22222;font-size:17px;">药品耗材</b>
                                                                        <?php else: ?>
                                                                            <?php if($v['type'] == 3): ?>
                                                                                <b style="color:#9370DB;font-size:17px;">行政借款</b>
                                                                            <?php else: ?>
                                                                                <?php if($v['type'] == 4): ?>
                                                                                    <b style="color:#9370DB;font-size:17px;">户外费用</b>
                                                                                <?php endif ?>
                                                                            <?php endif ?>
                                                                        <?php endif ?>
                                                                    <?php endif ?>
                                                            </td>  

                                                            <td class="center">{$v.acc}</td>                                                   
                                                            <td class="center">{$v.sum}</td>
                                                            <td class="center">{$v.set}</td>
                                                            <td class="center">{$v.content}</td>
                                                            <td class="center">{$v.uname}</td>
                                                            <td class="center">{$v.ment}</td>
                                                            <td class="center">{$v.time}</td>
                                                            <td class="center">{$v.dname}</td>
                                                            <td class="center">{$v.dtime}</td>
                                                            <td class="center" style="color:#53FF53;"><b>已通过√</b></td>
                                                            <!-- <td class="center" style="color:red;"><b>已通过√</b></td> -->
                                                           
                                                              <!--   <td class="center">
                                                                <button onclick="xtong({$v.id},this)" class="btn-success">通过</button>
                                                                <button onclick="xju({$v.id},this)" class="btn-danger">拒绝</button>
                                                                </td>
                                                           -->
                                                            
                                                        </tr>
                                                    </volist>
                                                    </tbody>
                                                </table>
                                                <!-- 行政物资审核 END -->
                                        <?php endif ?>
                                                </div>
                                        <hr>
                                        {$page}
                                    </div>
                                </div>
                            </notempty>
                        </div>
                    </div>
                <!-- 急性行政物资审核  END -->
                <?php else: ?>
                    <?php if($lei == 3): ?>   <!-- 行政类拒绝 -->
                    <!-- 行政物资审核 -->
                   <div class="row">
                        <div class="widget-box" style="margin-top:60px;height:0px;">
                            <div class="widget-header">
                                <h4 class="widget-title" style="color:#EE0000;">
                                    <label>                 
                                        <span class="lbl"></span>
                                    </label>
                                    
                                    <?php if($lei == '1'): ?>
                                        <b>--行政类-已通过√--</b>
                                    <?php else: ?>
                                        <?php if($lei == 2): ?>
                                        <b>--费用类-已通过√--</b>
                                        <?php else: ?>
                                            <?php if($lei == 3): ?>
                                                <b>--行政类-拒绝√--</b>
                                            <?php else: ?>
                                                 <b>--费用类-拒绝√--</b>
                                            <?php endif ?>
                                        <?php endif ?>
                                    <?php endif ?>
                                </h4>
                                <div class="widget-toolbar">
                                    <notempty name="v.children">
                                        <a href="#" data-action="collapse">
                                            <i class="ace-icon fa fa-chevron-up"></i>
                                        </a>
                                    </notempty>
                                </div>
                            </div>
                            <notempty name="v.children">
                                <div class="widget-body">
                                    <div class="widget-main row" style="height:100%;">
                                        <?php if(!empty($x_list)): ?>
                                                <!-- 行政物资审核 END -->
                                                <div>
                                                <!-- <h4 style="text-align:center;"><b>行政物资申请:</b></h4> -->
                                                <table class="table table-bordered" style="margin-top:5px;">
                                                    <thead>
                                                        <tr>
                                                            <th class="center">物品编号</th>
                                                            <th class="center">申请类型</th>
                                                            <th class="center">物品名称</th>
                                                            <!-- <th>单价</th> -->
                                                            <th class="center">申请数量</th>
                                                            <th class="center">剩余库存量</th>
                                                            <th class="center">申请人</th>
                                                            <th class="center">所属部门</th>
                                                            <th class="center">申请时间</th>
                                                            <th class="center">最后审核人</th>
                                                            <th class="center">最后拒绝时间</th>
                                                            <th class="center">操作</th>
                                                            <!-- <th class="center">操作</th> -->
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                    <volist name="x_list" id="v">
                                                        <tr>
                                                            <td class="center">{$v.sid}</td>                                                   
                                                            <td class="center">
                                                                <?php if($v['type'] == 0): ?>
                                                                    <b style="color:#F4A460;font-size:17px;">行政物资申请</b>
                                                                <?php else: ?>
                                                                    <?php if($v['type'] == 1): ?>
                                                                        <b style="color:#B22222;font-size:17px;">急性行政物资申请</b>
                                                                    <?php else: ?>
                                                                        <?php if($v['type'] == 2): ?>
                                                                            <b style="color:#9370DB;font-size:17px;">固定资产申购</b>
                                                                        <?php else: ?>
                                                                    
                                                                        <?php endif ?>
                                                                    <?php endif ?>
                                                                <?php endif ?>
                                                            </td>                                                   
                                                            <td class="center">{$v.wname}</td>                                                   
                                                            <td class="center">{$v.num}</td>
                                                            <td class="center">{$v.number}</td>
                                                            <td class="center">{$v.uname}</td>
                                                            <td class="center">{$v.ment}</td>
                                                            <td class="center">{$v.time}</td>
                                                            <td class="center">
                                                                <?php if($v['ju'] == 1): ?>
                                                                    {$v.zname}
                                                                <?php else: ?>
                                                                    <?php if($v['ju'] == 2): ?>
                                                                        {$v.jname}
                                                                    <?php else: ?>
                                                                        <?php if($v['ju'] == 3): ?>
                                                                            {$v.xname}
                                                                        <?php else: ?>
                                                                            <?php if($v['ju'] == 4): ?>
                                                                                {$v.cname}
                                                                            <?php else: ?>
                                                                                <?php if($v['ju'] == 5): ?>
                                                                                    {$v.dname}
                                                                                
                                                                                <?php endif ?>
                                                                            <?php endif ?>
                                                                        <?php endif ?>
                                                                    <?php endif ?>
                                                                <?php endif ?>
                                                            </td>
                                                            <td class="center">
                                                                <?php if($v['ju'] == 1): ?>
                                                                    {$v.ztime}
                                                                <?php else: ?>
                                                                    <?php if($v['ju'] == 2): ?>
                                                                        {$v.jtime}
                                                                    <?php else: ?>
                                                                        <?php if($v['ju'] == 3): ?>
                                                                            {$v.xtime}
                                                                        <?php else: ?>
                                                                            <?php if($v['ju'] == 4): ?>
                                                                                {$v.ctime}
                                                                            <?php else: ?>
                                                                                <?php if($v['ju'] == 5): ?>
                                                                                    {$v.dtime}
                                                                                
                                                                                <?php endif ?>
                                                                            <?php endif ?>
                                                                        <?php endif ?>
                                                                    <?php endif ?>
                                                                <?php endif ?>
                                                            </td>
                                                            <td class="center" style="color:red;"><b>已拒绝×</b></td>
                                                            <!-- <td class="center" style="color:red;"><b>已通过√</b></td> -->
                                                           
                                                              <!--   <td class="center">
                                                                <button onclick="xtong({$v.id},this)" class="btn-success">通过</button>
                                                                <button onclick="xju({$v.id},this)" class="btn-danger">拒绝</button>
                                                                </td>
                                                           -->
                                                            
                                                        </tr>
                                                    </volist>
                                                    </tbody>
                                                </table>
                                                <!-- 行政物资审核 END -->
                                        <?php endif ?>
                                                </div>
                                        <hr>
                                        {$page}
                                    </div>
                                </div>
                            </notempty>
                        </div>
                    </div>
                <!-- 急性行政物资审核  END -->
                <?php else: ?>
                    <?php if($lei == 4): ?>   <!-- 行政类拒绝 -->
                    <!-- 行政物资审核 -->
                   <div class="row">
                        <div class="widget-box" style="margin-top:60px;height:0px;">
                            <div class="widget-header">
                                <h4 class="widget-title" style="color:#EE0000;">
                                    <label>                 
                                        <span class="lbl"></span>
                                    </label>
                                    
                                    <?php if($lei == '1'): ?>
                                        <b>--行政类-已通过√--</b>
                                    <?php else: ?>
                                        <?php if($lei == 2): ?>
                                        <b>--费用类-已通过√--</b>
                                        <?php else: ?>
                                            <?php if($lei == 3): ?>
                                                <b>--行政类-拒绝√--</b>
                                            <?php else: ?>
                                                 <b>--费用类-拒绝√--</b>
                                            <?php endif ?>
                                        <?php endif ?>
                                    <?php endif ?>
                                </h4>
                                <div class="widget-toolbar">
                                    <notempty name="v.children">
                                        <a href="#" data-action="collapse">
                                            <i class="ace-icon fa fa-chevron-up"></i>
                                        </a>
                                    </notempty>
                                </div>
                            </div>
                            <notempty name="v.children">
                                <div class="widget-body">
                                    <div class="widget-main row" style="height:100%;">
                                        <?php if(!empty($x_list)): ?>
                                                <!-- 行政物资审核 END -->
                                                <div>
                                                <!-- <h4 style="text-align:center;"><b>行政物资申请:</b></h4> -->
                                                <table class="table table-bordered" style="margin-top:5px;">
                                                    <thead>
                                                        <tr>
                                                            <th class="center">编号</th>
                                                            <th class="center">申请类型</th>
                                                            <th class="center">科目</th>
                                                            <!-- <th>单价</th> -->
                                                            <th class="center">申请金额</th>
                                                            <th class="center">单据张数</th>
                                                            <th class="center">费用缘由</th>
                                                            <th class="center">申请人</th>
                                                            <th class="center">所属部门</th>
                                                            <th class="center">申请时间</th>
                                                            <th class="center">最后审核人</th>
                                                            <th class="center">最后通过时间</th>
                                                            <th class="center">操作</th>
                                                            <!-- <th class="center">操作</th> -->
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                    <volist name="x_list" id="v">
                                                        <tr>
                                                             <tr>
                                                            <td class="center">{$v.sid}</td>  
                                                            <td class="center">
                                                                 <?php if($v['type'] == 1): ?>
                                                                        <b style="color:#F4A460;font-size:17px;">业务招待费</b>
                                                                    <?php else: ?>
                                                                        <?php if($v['type'] == 2): ?>
                                                                            <b style="color:#B22222;font-size:17px;">药品耗材</b>
                                                                        <?php else: ?>
                                                                            <?php if($v['type'] == 3): ?>
                                                                                <b style="color:#9370DB;font-size:17px;">行政借款</b>
                                                                            <?php else: ?>
                                                                                <?php if($v['type'] == 4): ?>
                                                                                    <b style="color:#9370DB;font-size:17px;">户外费用</b>
                                                                                <?php endif ?>
                                                                            <?php endif ?>
                                                                        <?php endif ?>
                                                                    <?php endif ?>
                                                            </td>  

                                                            <td class="center">{$v.acc}</td>                                                   
                                                            <td class="center">{$v.sum}</td>
                                                            <td class="center">{$v.set}</td>
                                                            <td class="center">{$v.content}</td>
                                                            <td class="center">{$v.uname}</td>
                                                            <td class="center">{$v.ment}</td>
                                                            <td class="center">{$v.time}</td>
                                                            <td class="center">
                                                                <?php if($v['ju'] == 1): ?>
                                                                    {$v.zname}
                                                                <?php else: ?>
                                                                    <?php if($v['ju'] == 2): ?>
                                                                        {$v.jname}
                                                                    <?php else: ?>
                                                                        <?php if($v['ju'] == 3): ?>
                                                                            {$v.xname}
                                                                        <?php else: ?>
                                                                            <?php if($v['ju'] == 4): ?>
                                                                                {$v.cname}
                                                                            <?php else: ?>
                                                                                <?php if($v['ju'] == 5): ?>
                                                                                    {$v.dname}
                                                                                
                                                                                <?php endif ?>
                                                                            <?php endif ?>
                                                                        <?php endif ?>
                                                                    <?php endif ?>
                                                                <?php endif ?>
                                                            </td>
                                                            <td class="center">
                                                                <?php if($v['ju'] == 1): ?>
                                                                    {$v.ztime}
                                                                <?php else: ?>
                                                                    <?php if($v['ju'] == 2): ?>
                                                                        {$v.jtime}
                                                                    <?php else: ?>
                                                                        <?php if($v['ju'] == 3): ?>
                                                                            {$v.xtime}
                                                                        <?php else: ?>
                                                                            <?php if($v['ju'] == 4): ?>
                                                                                {$v.ctime}
                                                                            <?php else: ?>
                                                                                <?php if($v['ju'] == 5): ?>
                                                                                    {$v.dtime}
                                                                                
                                                                                <?php endif ?>
                                                                            <?php endif ?>
                                                                        <?php endif ?>
                                                                    <?php endif ?>
                                                                <?php endif ?>
                                                            </td>
                                                            <td class="center" style="color:red;"><b>已拒绝×</b></td>
                                                            <!-- <td class="center" style="color:red;"><b>已通过√</b></td> -->
                                                           
                                                              <!--   <td class="center">
                                                                <button onclick="xtong({$v.id},this)" class="btn-success">通过</button>
                                                                <button onclick="xju({$v.id},this)" class="btn-danger">拒绝</button>
                                                                </td>
                                                           -->
                                                            
                                                        </tr>
                                                    </volist>
                                                    </tbody>
                                                </table>
                                                <!-- 行政物资审核 END -->
                                        <?php endif ?>
                                                </div>
                                        <hr>
                                        {$page}
                                    </div>
                                </div>
                            </notempty>
                        </div>
                    </div>
                <!-- 急性行政物资审核  END -->
                <?php else: ?>
                    
                <?php endif ?>
                <?php endif ?>



                <?php endif ?>





                <?php endif ?>
                    
                    


                


            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <!-- <include file="Public/footer"/> -->

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script src="__PUBLIC__/layer/layer.js"></script>
<script src="__PUBLIC__/jquery-1.7.2.min.js"></script>
<script>
function fan()
{
     location.href="{:U('Shenp/index')}";
}




</script>



</body>

</html>
